{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<script>
var integral='{yun:}$statis.pay{/yun}';
var jobid='{yun:}$info.id{/yun}';

//加减乘除
function accAdd(arg1,arg2){ 
	var r1,r2,m; 
	try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} 
	try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} 
	m=Math.pow(10,Math.max(r1,r2)) 
	return (arg1*m+arg2*m)/m 
} 
function accSub(arg1,arg2){ 
	return accAdd(arg1,-arg2); 
} 
function accMul(arg1, arg2) {
	var m = 0, s1 = arg1.toString(), s2 = arg2.toString();
	try { m += s1.split(".")[1].length } catch (e) { }
	try { m += s2.split(".")[1].length } catch (e) { }
	return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
}
function accDiv(arg1,arg2){    
	var t1=0,t2=0,r1,r2;    
	try{t1=arg1.toString().split(".")[1].length}catch(e){}    
	try{t2=arg2.toString().split(".")[1].length}catch(e){}    
	with(Math){        
		r1=Number(arg1.toString().replace(".",""));        
		r2=Number(arg2.toString().replace(".",""));        
		return (r1/r2)*pow(10,t2-t1);    
	}
}

$(document).ready(function () { 
	$("input[name='days']").click(function(){ 
		var val=$(this).val(); 
		$("#dkjf").val('');
		$("#dkhdiv").hide();
		if(val=='1008'){
			$(".pricehtml").html('0');
			$("#customizediv").show();
			
		}else{
			$("#customizediv").hide();
			$("#customize").val('');
			countmoney(val);
		}
	});
	$("#price").keyup(function(){
		var days=$("input[name='days']:checked").val();
		if(days=='1008'){
			days=$('#customize').val();
		}
		countmoney(days);		
	});
	$("#customize").keyup(function(){
		var val=$(this).val();
		countmoney(val);		
	});
});

function myFunction(_this) {
    _this.value = _this.value.replace(/[^0-9]/g, '');
}

function checkNum(integral,integral_pro){
	var dkjf = $("#dkjf").val();
	if(dkjf){
		$("#dkhdiv").show();
	}
	var need = $(".pricehtml").text();
	var need_jifen = accMul(need, integral_pro);

	if(parseInt(integral) >= parseInt(need_jifen)){
		if(parseInt(dkjf) > parseInt(need_jifen)){
			$("#dkjf").val(need_jifen);
			var dkjfh = accSub(need , accDiv(need_jifen,integral_pro));
		}else{
			var dkjfh = accSub(need, accDiv(dkjf,integral_pro));
		}	
 	}else{
		if(parseInt(dkjf) > parseInt(integral)){
			$("#dkjf").val(integral);
			var dkjfh = accSub(need , accDiv(integral,integral_pro));
		}else{
			var dkjfh = accSub(need, accDiv(dkjf,integral_pro));
 		}
 	}
  	 
	if(dkjfh <= 0){
		$("#dkjfh_price").html(0);
		$("#zffs").hide();
		$("#qrzf_btn").show();
	}else{
		$("#dkjfh_price").html(dkjfh);
		$("#zffs").show();
		$("#qrzf_btn").hide();
	}
}

/**
 *	全额抵扣功能
 */
function qrzf(type,jobid){
	var jobid = jobid;
	var days=$("input[name='days']:checked").val();
	if(type=='autojob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#crdays').val(days);
			$('#rdays').val('');
		}else{
			$('#rdays').val(days);
		} 
		var rdays = $('#rdays').val();
		var crdays = $('#crdays').val();
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{jobautoids:jobid,rdays:rdays,crdays:crdays},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='zdjob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#cxsdays').val(days);
			$('#xsdays').val('');
		}else{
			$('#xsdays').val(days);
		} 
		var xsdays = $('#xsdays').val();
		var cxsdays = $('#cxsdays').val();
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{zdjobid:jobid,xsdays:xsdays,cxsdays:cxsdays},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='recjob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#crecdays').val(days);
			$('#recdays').val('');
		}else{
			$('#recdays').val(days);
		} 
		var recdays = $('#recdays').val();
		var crecdays = $('#crecdays').val();
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{recjobid:jobid,recdays:recdays,crecdays:crecdays},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='ujob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#cudays').val(days);
			$('#udays').val('');
		}else{
			$('#udays').val(days);
		} 
		var udays = $('#udays').val();
		var cudays = $('#cudays').val();
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{ujobid:jobid,udays:udays,cudays:cudays},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='sxjob'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{sxjobid:jobid},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='sxltjob'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{sxltjobid:jobid},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=lt_job";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='downresume'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{eid:jobid},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="{yun:}url m=wap c=resume a=show id=$smarty.get.id{/yun}";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='issue'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{issuejob:1},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=jobadd";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='issuepart'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{issuepart:1},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=partadd";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='issueltjob'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{issueltjob:1},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){location.href="index.php?c=lt_jobadd";});return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}else if(type=='invite'){
		layer_load('执行中，请稍候...');
		$.post("index.php?c=dkzf",{invite:1},function(data){
			layer.closeAll();
			var data=eval('('+data+')');
			if(data.error=='0'){ //成功
				layermsg(data.msg,2,function(){
					location.href = "index.php?c=yq&uid="+jobid;
				});
				return false;
			}else{
				layermsg(data.msg,2,function(){location.reload();});return false;
			}
		});
	}
}

function countmoney(val){
	var price=$("#price").val(); 
	var money=parseInt(val*(price*100))/100; 
	if(integral<money){//余额不足
		$("#ptype").val(2);
	}else{
		$("#ptype").val(1);
	}
	$(".pricehtml").html(money);
}
function forsubmit(server){
	var days=$("input[name='days']:checked").val();
	if(days=='1008'){
		days=$('#customize').val();
	} 
	if(days==''||days<1){
		layermsg("请选择或填写天数！", 2);return false;	
	}else{
		countmoney(days);
		var ptype=$('#ptype').val();
		if(ptype!='1'){
			layermsg("余额不足，请先充值！", 2);return false;
		}
	}
	layer_load('执行中，请稍候...');
	$.post("index.php?c=saveserver",{jobid:jobid,days:days,server:server},function(data){
		layer.closeAll();
		var data=eval('('+data+')');
		if(data.type=='1'){ //成功
			layermsg(data.msg,2,function(){location.href="index.php?c=job";});return false;
		}else{
			layermsg(data.msg,2,function(){location.reload();});return false;
		}
	});
}

function pay_form(type){
 	var days=$("input[name='days']:checked").val();
	if(type=='autojob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#crdays').val(days);
			$('#rdays').val('');
		}else{
			$('#rdays').val(days);
		} 
	}else if(type=='zdjob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#cxsdays').val(days);
			$('#xsdays').val('');
		}else{
			$('#xsdays').val(days);
		} 
	}else if(type=='recjob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#crecdays').val(days);
			$('#recdays').val('');
		}else{
			$('#recdays').val(days);
		} 
	}else if(type=='ujob'){
		if(days=='1008'){
			days=$('#customize').val();
			$('#cudays').val(days);
			$('#udays').val('');
		}else{
			$('#udays').val(days);
		} 
	}	
	if(days==''||days<1){
		layermsg("请选择或填写天数！", 2);return false;	
	}
	var paytype=$('input:radio[name="paytype"]:checked').val();
	if(paytype==null){
		layermsg('请选择一种支付方式！', 2);return false; 
	}else if(paytype=='alipay'){
		$("#paymentform").attr("action","{yun:}$config.sy_weburl{/yun}/api/wapalipay/alipayto.php?dingdan={yun:}$order.order_id{/yun}&dingdanname={yun:}$order.order_id{/yun}&alimoney={yun:}$order.order_price{/yun}");
	}
	return true;
}
</script>

<section class="wap_member">



{yun:}if $smarty.get.server=='1'{/yun}
<div class="wap_member_comp_h1"><span>我要推广</span></div>
<!--自动刷新-->   

	<div class="getserbver_box"> 

		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('autojob');">
		
			<ul class="getserbver_box_list"> 
				<li>
					<span class="getserbver_box_list_s">自动刷新：</span>
					<div class="getserbver_box_list_r">
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" checked name="days" value='1'>1天</label>
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" name="days" value='3'>3天</label>
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" name="days" value='7'>7天</label>
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" name="days" value='15'>15天</label>
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" name="days" value='30'>30天</label> 
						<label class="getserbver_box_list_r_s getserbver_box_list_r_sh"><input type="radio" name="days" value='1008'>自定义</label> 
					</div>
				</li>
				<li id="customizediv" style="display:none">
					<div class="getserbver_box_list_p">
						自定义时间：<input type="text"  placeholder="自定义" name="customize" id="customize"  maxlength="3" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="getserbver_box_list_r_zdy_bth">天
					</div>
				</li>
				<!-- <li><div class="getserbver_box_list_p">服务价格：<span class="getserbver_box_s">{yun:}$config.job_auto{/yun}</span> 元/天</div></li> -->
				<li><div class="getserbver_box_list_p">所需金额：<span class="getserbver_box_s pricehtml">{yun:}$config.job_auto{/yun}</span>元</div></li>
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="rdkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}

				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>
				
			</ul>
			
			<div id="zffs">
				
				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun} 
				
				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun} 
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('autojob','{yun:}$info.id{/yun}');" class="reinputText2">
				</div>
			</div>


		
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			<input name="server" id="server" type="hidden" value="autojob"/>
			<input name="rdays" id="rdays" type="hidden" value=""/>
			<input name="crdays" id="crdays" type="hidden" value=""/>
			<input name="jobautoids" id="jobautoids" type="hidden" value="{yun:}$info.id{/yun}"/>
			<input id="price" type="hidden" value="{yun:}$config.job_auto{/yun}"/>
		</form>
	</div> 

{yun:}elseif $smarty.get.server=='2'{/yun}
<div class="wap_member_comp_h1"><span>我要推广</span></div>
<!--竞价-->
	<div class="getserbver_box"> 

		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('zdjob');">
		
			<ul class="getserbver_box_list"> 
				<li>
					<span class="getserbver_box_list_s">置顶时长：</span>
					<div class="getserbver_box_list_r">
						<label class="getserbver_box_list_r_s"><input type="radio" checked name="days" value='1'>1天</label>
						<label class="getserbver_box_list_r_s"><input type="radio"  name="days" value='3'>3天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='7'>7天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='15'>15天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='30'>30天</label> 
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='1008'>自定义</label> 
					</div>
				</li>
				<li id="customizediv" style="display:none">
					<div class="getserbver_box_list_p">
						自定义时间：<input type="text"  placeholder="自定义" name="customize" id="customize" maxlength="3" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="getserbver_box_list_r_zdy_bth">天
					</div>
				</li>
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s pricehtml">{yun:}$config.integral_job_top{/yun}</span> 元
					</div>
				</li>
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="xsdkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>
			</ul>
			<div id="zffs">
			
				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  
				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('zdjob','{yun:}$info.id{/yun}');" class="reinputText2">
				</div>
			</div>
		
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			<input id="price" type="hidden" value="{yun:}$config.integral_job_top{/yun}"/>
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_job_top{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
			<input name="server" id="server" type="hidden" value="zdjob"/>
			<input name="xsdays" id="xsdays" type="hidden" value=""/>
			<input name="cxsdays" id="cxsdays" type="hidden" value=""/>
			<input name="zdjobid" id="zdjobid" type="hidden" value="{yun:}$info.id{/yun}"/>
		</form>
	</div>

{yun:}elseif $smarty.get.server=='3'{/yun}
<div class="wap_member_comp_h1"><span>我要推广</span></div>
<!--推荐-->   
	<div class="getserbver_box"> 

		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('recjob');">
			
			<ul class="getserbver_box_list"> 
				<li>
					<span class="getserbver_box_list_s">推荐时长：</span>
					<div class="getserbver_box_list_r">
						<label class="getserbver_box_list_r_s"><input type="radio" checked name="days" value='1'>1天</label>
						<label class="getserbver_box_list_r_s"><input type="radio"  name="days" value='3'>3天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='7'>7天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='15'>15天</label>
						<label class="getserbver_box_list_r_s"><input type="radio"  name="days" value='30'>30天</label> 
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='1008'>自定义</label> 
					</div>
				</li>
				<li id="customizediv" style="display:none">
					<div class="getserbver_box_list_p">
						自定义时间：<input type="text"  placeholder="自定义" name="customize" id="customize"  maxlength="3" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="getserbver_box_list_r_zdy_bth">天
					</div>
				</li>
				<li>
					<div class="getserbver_box_list_p">所需金额：
						<span class="getserbver_box_s pricehtml">{yun:}$config.com_recjob{/yun}</span> 元
					</div>
				</li>
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="recdkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>
			</ul>
			
			<div id="zffs">
			
				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  
				
				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('recjob','{yun:}$info.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}

			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.com_recjob{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
			<input id="price" type="hidden" value="{yun:}$config.com_recjob{/yun}"/>
			<input name="server" id="server" type="hidden" value="recjob"/>
			<input name="recdays" id="recdays" type="hidden" value=""/>
			<input name="crecdays" id="crecdays" type="hidden" value=""/>
			<input name="recjobid" id="recjobid" type="hidden" value="{yun:}$info.id{/yun}"/>
		</form>
	</div>

{yun:}elseif $smarty.get.server=='4'{/yun}
<div class="wap_member_comp_h1"><span>我要推广</span></div>
<!--紧急-->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('ujob');">
			<ul class="getserbver_box_list">
				<li>
					<span class="getserbver_box_list_s">紧急天数：</span>
					<div class="getserbver_box_list_r">
						<label class="getserbver_box_list_r_s"><input type="radio" checked name="days" value='1'>1天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='3'>3天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='7'>7天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='15'>15天</label>
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='30'>30天</label> 
						<label class="getserbver_box_list_r_s"><input type="radio" name="days" value='1008'>自定义</label> 
					</div>
				</li>
				<li id="customizediv" style="display:none">
					<div class="getserbver_box_list_p">
						自定义时间：<input type="text"  placeholder="自定义" name="customize" id="customize" maxlength="3"  onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="getserbver_box_list_r_zdy_bth">天
					</div>
				</li>
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.com_urgent{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="urdkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				
				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('ujob','{yun:}$info.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
			<!-- <div class="getserbver_box_bth"><input type="button" onclick="forsubmit('4')" value="确定" class="reinputText2"></div> -->
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
			<input id="price" type="hidden" value="{yun:}$config.com_urgent{/yun}"/>
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.com_urgent{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
			<input name="server" id="server" type="hidden" value="ujob"/>
			<input name="udays" id="udays" type="hidden" value=""/>
			<input name="cudays" id="cudays" type="hidden" value=""/>
			<input name="ujobid" id="ujobid" type="hidden" value="{yun:}$info.id{/yun}"/>
		</form>
	</div>

{yun:}elseif $smarty.get.server=='5'{/yun}
<div class="wap_member_comp_h1"><span>我要推广</span></div>
<!--刷新职位-->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('sxjob');">
			<ul class="getserbver_box_list">
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.integral_jobefresh{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="sxdkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				
				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('sxjob','{yun:}$info.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
			<!-- <div class="getserbver_box_bth"><input type="button" onclick="forsubmit('4')" value="确定" class="reinputText2"></div> -->
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
 			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_jobefresh{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
			<input name="server" id="server" type="hidden" value="sxjob"/>
  			<input name="sxjobid" id="sxjobid" type="hidden" value="{yun:}$info.id{/yun}"/>
  			<input name="breakjob_num" id="breakjob_num" type="hidden" value="{yun:}$statis.breakjob_num{/yun}"/>
		</form>
	</div>


{yun:}elseif $smarty.get.server=='7'{/yun}
<div class="wap_member_comp_h1"><span>下载简历</span></div>
<!--下载简历-->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('downresume');">
			<ul class="getserbver_box_list">
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.integral_down_resume{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="dkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				

				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('downresume','{yun:}$smarty.get.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
			<!-- <div class="getserbver_box_bth"><input type="button" onclick="forsubmit('4')" value="确定" class="reinputText2"></div> -->
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_down_resume{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
  			<input name="server" id="server" type="hidden" value="downresume"/>
  			<input name="eid" id="eid" type="hidden" value="{yun:}$smarty.get.id{/yun}"/>
		</form>
	</div>

{yun:}elseif $smarty.get.server=='8'{/yun}
<div class="wap_member_comp_h1"><span>发布职位</span></div>
<!-- 发布职位-->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('issue');">
			<ul class="getserbver_box_list">
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.integral_job{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="issue_dkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				

				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('issue','{yun:}$smarty.get.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
			<!-- <div class="getserbver_box_bth"><input type="button" onclick="forsubmit('4')" value="确定" class="reinputText2"></div> -->
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_job{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
  			<input name="server" id="server" type="hidden" value="issue"/>
  			<input name="issuejob" type="hidden" value="1"/>
 		</form>
	</div>

{yun:}elseif $smarty.get.server=='9'{/yun}
<div class="wap_member_comp_h1"><span>发布兼职</span></div>
<!-- 发布兼职-->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('issuepart');">
			<ul class="getserbver_box_list">
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.integral_partjob{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="issuep_dkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				

				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('issuepart','');" class="reinputText2">
				</div>
			</div>
			
			<!-- <div class="getserbver_box_bth"><input type="button" onclick="forsubmit('4')" value="确定" class="reinputText2"></div> -->
			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_partjob{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
  			<input name="server" id="server" type="hidden" value="issuepart"/>
  			<input name="issuepart" type="hidden" value="1"/>
 		</form>
	</div>


{yun:}elseif $smarty.get.server=='11'{/yun}
<div class="wap_member_comp_h1"><span>邀请面试</span></div>
<!-- 邀请面试 -->  
	<div class="getserbver_box">
		<form action="index.php?c=getOrder" method="post" onsubmit="return pay_form('invite');">
			<ul class="getserbver_box_list">
				<li>
					<div class="getserbver_box_list_p">
						所需金额：<span class="getserbver_box_s  pricehtml">{yun:}$config.integral_interview{/yun}</span> 元
					</div>
				</li>
				
				{yun:}if $config.com_integral_online==1{/yun}
					<li>
						<div class="getserbver_box_list_p">
							抵扣{yun:}$config.integral_pricename{/yun}：<input type="text" name="invite_dkjf" id="dkjf" onkeyup="checkNum('{yun:}$statis.integral{/yun}','{yun:}$config.integral_proportion{/yun}');" oninput="myFunction(this)" class="getserbver_box_list_r_zdy_bth">
						</div>
					</li>
					<li>
						<div class="getserbver_box_list_p">账户{yun:}$config.integral_pricename{/yun}：<span class="getserbver_box_s">{yun:}$statis.integral{/yun}</span> （1元 = {yun:}$config.integral_proportion{/yun}{yun:}$config.integral_pricename{/yun}）</div>
					</li>
				{yun:}/if{/yun}
				<li id="dkhdiv" style="display:none">
					<div class="getserbver_box_list_p">抵后金额：<span id="dkjfh_price" class="getserbver_box_s"></span>元</div>
				</li>

			</ul>
			
			<div id="zffs">
				

				{yun:}if $paytype.alipay{/yun}
					<div class="pay_f_list">
						<label>
							<i class="pay_f_list_zfb"></i><span class="pay_f_list_box">支付宝支付 </span>
							<input type='radio' name='paytype' value='alipay' class="pay_f_list_radio">
						</label>
					</div>
				{yun:}/if{/yun}  

				{yun:}if $paytype.alipay{/yun}	
					<div class="getserbver_box_bth">
						<div class="pay_com_lsit_right"><input type="submit" value="确认支付" name=nextstep  class="reinputText2"></div>
					</div>
				{yun:}else{/yun} 
					<div class="pay_com_list">
						<div class="pay_com_lsit_right">
						  <span>网站已关闭支付功能，请联系管理员！</span>
						</div>
					</div>
				{yun:}/if{/yun}
			</div>
			<div class="getserbver_box_bth" id="qrzf_btn" style="display:none">
				<div class="pay_com_lsit_right">
					<input type="button" value="确认支付" onClick="qrzf('invite','{yun:}$smarty.get.id{/yun}');" class="reinputText2">
				</div>
			</div>
			
 			{yun:}if $config.sy_freewebtel{/yun}
				<div class="getserbver_box_tel">
					<a href="tel:{yun:}$config.sy_freewebtel{/yun}">客服电话：{yun:}$config.sy_freewebtel{/yun}</a>
				</div>
			{yun:}/if{/yun}
			
			<input id="ptype" type="hidden" value="{yun:}if $statis.pay>=$config.integral_interview{/yun}1{yun:}else{/yun}2{yun:}/if{/yun}"/>
  			<input name="server" id="server" type="hidden" value="invite"/>
  			<input name="invite" type="hidden" value="1"/>
 		</form>
	</div>

{yun:}/if{/yun} 
</section>
<div class="clear"></div>
{yun:}include file="$wapstyle/footer.htm"{/yun} 